package com.wiretap.dao;

import java.util.List;

import com.wiretap.po.RemoteSms;
import com.wiretap.util.Pager;

public interface RemoteSmsDao {
	void addRemoteSms(RemoteSms sms) throws Exception;

	int deleteRemoteSms(String id) throws Exception;

	Pager<RemoteSms> getContactRemoteSms(String ownerPhone, String contactPhone, int currentPage, int pageSize) throws Exception;

	void updateRemoteSms(RemoteSms sms) throws Exception;

	RemoteSms getRemoteSmsById(String id) throws Exception;

	int updateRemoteSmsExecutedStatus(String[] ids, int status) throws Exception;

	List<RemoteSms> getAllUnexecutedRemoteSms(String phone) throws Exception;

	int deleteRemoteSmsByOwnerPhone(String ownerPhone) throws Exception;
}
